package com.kh.pajx.sop.dao.order.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.kh.pajx.sop.base.BaseDaoImpl;
import com.kh.pajx.sop.dao.order.IReplaceCardOrderDao;
import com.kh.pajx.sop.domain.order.ReplaceCardOrder;

/**
 * 补卡单据数据持久化操作实现类
 * @author:	azzcsimp
 * @Createdate:	2014年11月11日 上午10:07:18
 */
@Repository
public class ReplaceCardOrderDaoImpl extends BaseDaoImpl<ReplaceCardOrder> implements IReplaceCardOrderDao {

	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	@Override
	public List<ReplaceCardOrder> getOrderList(String hql) {
		return getSession().createQuery(hql).list();
	}

	
	/*@Override
	public List<ReplaceCardOrder> findOrderByStatus(int status){
		return getSession().createQuery(//
				"FROM ReplaceCardOrder o WHERE o.rcoStatus=?")//
				.setParameter(0, status)//
				.list();
				
	}
	
	@Override
	public List<ReplaceCardOrder> findOrderByCreateOperId(String createOperId,int status){
		return getSession().createQuery(//
				"FROM ReplaceCardOrder o WHERE o.createOperId=? AND o.rcoStatus=?")//
				.setParameter(0, createOperId)//
				.setParameter(1, status)//
				.list();
	}
	
	@Override
	public List<ReplaceCardOrder> findOrderByDealOperId(String dealOperId,int status){
		return getSession().createQuery(//
				"FROM ReplaceCardOrder o WHERE o.dealOperId=? AND o.rcoStatus=?")//
				.setParameter(0, dealOperId)//
				.setParameter(1, status)//
				.list();
	}*/

}
